package sicnu.cs.ich.log.rest.form;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import sicnu.cs.ich.api.domain.form.PageParam;

/**
 * @author CaiKe
 * @date 2021/12/5 16:51
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
public class LogPageParam extends PageParam {
    /**
     * 操作类别{ADD、UPDATE、DELETE、QUERY}
     */
    private String type;

    private String module;

    private String ip;

    public String getType() {
        return "".equals(type) ? null : type;
    }

    public String getModule() {
        return "".equals(module) ? null : module;
    }

    public String getIp() {
        return "".equals(ip)?null:ip;
    }
}